package com.zhc.dejingapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 所有申请的数据
 * </p>
 *
 * @author zhc
 * @since 2024-09-26
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("data")
@ApiModel(value = "DataEntity对象", description = "所有申请的数据")
public class DataEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("数据ID")
    @TableId(value = "data_id", type = IdType.AUTO)
    private Long dataId;

    @ApiModelProperty("问题ID")
    @TableField("que_id")
    private Long queId;

    @ApiModelProperty("申请ID")
    @TableField("apply_id")
    private Long applyId;

    @ApiModelProperty("数据值")
    @TableField("value")
    private String value;

    @ApiModelProperty("链接")
    @TableField("url")
    private String url;

    @ApiModelProperty("选项ID")
    @TableField("opt_id")
    private Integer optId;

    @ApiModelProperty("成员字段的uid")
    @TableField("opt_uid")
    private Integer optUid;

    @ApiModelProperty("其他选项内容")
    @TableField("other_string")
    private String otherString;

    @ApiModelProperty("插件的值")
    @TableField("plugin_value")
    private String pluginValue;

    @ApiModelProperty("选项序号")
    @TableField("ordinal")
    private Integer ordinal;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("最后更新时间")
    @TableField("last_upd_time")
    private LocalDateTime lastUpdTime;

    @ApiModelProperty("从哪条处理记录创建")
    @TableField("create_audit_rcd_id")
    private Long createAuditRcdId;

    @ApiModelProperty("从哪条处理记录删除")
    @TableField("delete_audit_rcd_id")
    private Long deleteAuditRcdId;

    @ApiModelProperty("数据属于哪个应用")
    @TableField("form_id")
    private Integer formId;


}
